package com.nai365.nart.search.feign;

import com.nai365.nart.common.core.constant.SecurityConstants;
import com.nai365.nart.common.core.constant.ServiceNameConstants;
import com.nai365.nart.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Description:
 * @Created: with IntelliJ IDEA.
 * @author: baogs
 * @createTime: 2021-03-18 09:15
 **/

@FeignClient(ServiceNameConstants.PRODUCT_SERVICE)
public interface ProductFeignService {

    @GetMapping("/product/attr/info/{attrId}")
    public R attrInfo(@PathVariable("attrId") Long attrId, @RequestHeader(SecurityConstants.FROM) String from);

    @PostMapping("/category/selectChildIdByCatId")
    public R selectChildIdByCatId(@RequestParam("catalogId") Integer catalogId, @RequestHeader(SecurityConstants.FROM) String from);

}
